|
ECMAScript for XML (E4X) is the standard ISO/IEC 22537:2006 () programming language extension that adds native XML support to ECMAScript (which includes ActionScript, JavaScript, and JScript). The goal is to provide an alternative to DOM interfaces that uses a simpler syntax for accessing XML documents. It also offers a new way of making XML visible. Before the release of E4X, XML was always accessed at an object level. E4X instead treats XML as a primitive (like characters, integers, and booleans). This implies faster access, better support, and acceptance as a building block (data structure) of a program. E4X is standardized by Ecma International in the (ECMA-357 standard ). The first edition was published in June 2004, the second edition in December 2005. The E4X standard was deprecated by the Mozilla Foundation in 2014.〔(【引用サイトリンク】url=https://developer.mozilla.org/en-US/docs/Archive/Web/E4X )〕 ==Browser support== E4X is supported by Mozilla's Rhino, used in OpenOffice.org and several other projects. It is also supported by Tamarin, the JavaScript engine used in the Flash virtual machine. It is not supported by other common engines like Nitro (Safari), V8 (Google Chrome), Carakan (Opera), and Internet Explorer.〔(【引用サイトリンク】url=http://code.google.com/p/chromium/issues/detail?id=30975 )〕 E4X was also supported by SpiderMonkey (used in Firefox and Thunderbird), but has been removed. In Firefox 10, E4X syntax was no longer accepted in SpiderMonkey when ECMAScript 5 "strict mode" is enabled.〔(【引用サイトリンク】url=https://developer.mozilla.org/en/Firefox_10_for_developers#JavaScript )〕 According to Brendan Eich, "This thus signals start of deprecation for E4X in SpiderMonkey."〔(【引用サイトリンク】url=https://bugzilla.mozilla.org/show_bug.cgi?id=695577#c1 )〕 and "has been disabled by default for webpages (content) in Firefox 17, disabled by default for chrome in Firefox 20, and has been removed in Firefox 21"〔(【引用サイトリンク】url=https://developer.mozilla.org/en-US/docs/E4X )〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「ECMAScript for XML」の詳細全文を読む スポンサード リンク
|